* lisp/hi-lock.el: More fixes for revert-buffer (bug#57534)
authorJuri Linkov <juri@linkov.net>
Thu, 27 Jun 2024 18:08:28 +0000 (21:08 +0300)
committerJuri Linkov <juri@linkov.net>
Thu, 27 Jun 2024 18:08:28 +0000 (21:08 +0300)
commit6d94090cadcff1b251457c2d82b287f4beb5a93d
tree197f379053cb1282df2bcfd26e1fe9157562d7e0
parent280c91782afa0c6ae667785b806da58e6be102ae
* lisp/hi-lock.el: More fixes for revert-buffer (bug#57534)

(hi-lock-set-pattern): Put the text property 'regexp' on the lighter string.
(hi-lock-revert-buffer-rehighlight): Get the real regexp from the
text property 'regexp'.  This fixes the case when the original
regexp gets lost after e.g. 'M-s . M-s h r'.
lisp/hi-lock.el